import http from '../../tool/http'
import api from '../../tool/api'
const state={
    personMsg:{}
}

const actions={
    getPersonMsg({commit},num){
        console.log(num);
        
        return http({
            url:api.checkmsg,
            method:'post',
            data:{number:num}
        }).then(res=>{
            console.log(res);
            commit('getPersonMsg',res.data.data)
        })
    }
}

const mutations={
    getPersonMsg(state,obj){
        state.personMsg=obj
    }
}

export default{
    state,actions,mutations
}